package com.exchange.View;

import android.view.View;
import android.view.animation.LinearInterpolator;
import android.view.animation.TranslateAnimation;

class f
  implements Runnable
{
  public void run()
  {
    int l;
    int i1;
    int i2;
    int i3;
    int i4;
    int i7;
    int i8;
    int i12;
    int i13;
    int i14;
    if (this.a.o)
      this.a.e();
    this.a.c.setVisibility(0);
    this.a.a = true;
    if (t.a(this.a) == t.b.e)
    {
      t localt4 = this.a;
      if ((t.c(this.a) == 0) || (t.c(this.a) == 2))
        break label379;
      i13 = 0;
      if (t.h(this.a) <= 0F)
        break label385;
      i14 = 1;
      localt4.b = (i13 ^ i14);
    }
    if (t.b(this.a) == 1)
    {
      i7 = t.e(this.a);
      if (!(this.a.b))
      {
        if (t.c(this.a) == 0)
          i7 = -i7;
        i8 = i7;
        i7 = 0;
        if (t.a(this.a) != t.b.d)
          break label418;
        if (Math.abs(t.i(this.a) - i8) < Math.abs(t.i(this.a) - i7))
        {
          t localt3 = this.a;
          if (!(this.a.b))
            break label412;
          i12 = 0;
          localt3.b = i12;
          i7 = i8;
        }
        i8 = (int)t.i(this.a);
        if ((t.a(this.a) != t.b.e) || (!(t.j(this.a))))
          break label444;
        int i10 = Math.max((int)(1000.0F * Math.abs((i7 - i8) / t.h(this.a))), 20);
        l = 0;
        i1 = 0;
        int i11 = i8;
        i3 = i7;
        i2 = i10;
        i4 = i11;
      }
    }
    while (true)
    {
      label379: int j;
      label385: label412: label418: label444: int i6;
      while (true)
      {
        while (true)
        {
          do
            while (true)
            {
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    t localt1 = this.a;
                    t.a(this.a, 0F);
                    t.b(localt1, 0F);
                    if (i2 != 0)
                      break label745;
                    t.a(this.a, t.b.c);
                    if (this.a.b)
                      this.a.d.setVisibility(8);
                    t.m(this.a);
                    return;
                    i13 = 1;
                  }
                  i14 = 0;
                }
                if (t.c(this.a) == 0)
                  i7 = -i7;
                i8 = 0;
              }
              i12 = 1;
            }
          while (t.a(this.a) != t.b.e);
          i8 = (int)t.i(this.a);
        }
        l = 0;
        i1 = 0;
        int i9 = i8;
        i3 = i7;
        i2 = 1000;
        i4 = i9;
      }
      int i = t.d(this.a);
      if (!(this.a.b))
      {
        if (t.c(this.a) == 2)
          i = -i;
        j = i;
        i = 0;
        if (t.a(this.a) != t.b.d)
          break label679;
        if (Math.abs(t.k(this.a) - j) < Math.abs(t.k(this.a) - i))
        {
          t localt2 = this.a;
          if (!(this.a.b))
            break label673;
          i6 = 0;
          localt2.b = i6;
          i = j;
        }
        j = (int)t.k(this.a);
      }
      while (true)
      {
        label673: label679: 
        do
          while (true)
          {
            while (true)
            {
              while (true)
              {
                if ((t.a(this.a) != t.b.e) || (!(t.j(this.a))))
                  break label704;
                int i5 = Math.max((int)(1000.0F * Math.abs((i - j) / t.h(this.a))), 20);
                l = i;
                i1 = j;
                i2 = i5;
                i3 = 0;
                i4 = 0;
              }
              if (t.c(this.a) == 2)
                i = -i;
              j = 0;
            }
            i6 = 1;
          }
        while (t.a(this.a) != t.b.e);
        j = (int)t.k(this.a);
      }
      label704: int k = t.l(this.a) * Math.abs(i - j) / t.d(this.a);
      l = i;
      i1 = j;
      i2 = k;
      i3 = 0;
      i4 = 0;
    }
    label745: this.a.s = new TranslateAnimation(i1, l, i4, i3);
    this.a.s.setDuration(i2);
    this.a.s.setFillAfter(true);
    this.a.s.setAnimationListener(t.n(this.a));
    if ((t.a(this.a) == t.b.e) && (t.j(this.a)))
      this.a.s.setInterpolator(new LinearInterpolator());
    while (true)
    {
      do
        while (true)
          this.a.startAnimation(this.a.s);
      while (t.o(this.a) == null);
      this.a.s.setInterpolator(t.o(this.a));
    }
  }
}